package com.github.liuche51.easyTaskL.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/test")
public class IPtestController {
    @RequestMapping("/ip")
    public ModelAndView ip() throws Exception {
        ModelAndView view = new ModelAndView("iptest.jsp");
        view.addObject("windows", com.github.liuche51.easyTask.util.Util.getLocalIP());
        view.addObject("linux", com.github.liuche51.easyTask.util.Util.getLocalIP());
        return view;
    }
}
